package io.dy.countDownLatch;

import lombok.Data;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author : dmj
 * @date: 2024/8/15 3:04 下午
 * @description:
 */
public class Main {

    public static void main(String[] args) {
        Student student = new Student();
        assemble(student);
        System.out.println(student);
    }


    private static void assemble(Student student){
        student.setAge(18);
        student.setName("zhangsan");
    }


//    private static void swap(int a, int b){
//        int c = a;
//        a = b;
//        b = c;
//    }


    @Data
    static class Student{
        private String name;

        private Integer age;
    }
}
